package com.csdj.controller.Be;

import com.csdj.common.utils.ResponseResult;
import com.csdj.pojo.SyEmp;
import com.csdj.service.SyEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/syEmp")
public class SyEmpController {
    @Autowired
    private SyEmpService syEmpService;
    @GetMapping
    private ResponseResult getById(Integer id){
        SyEmp byId = syEmpService.getById(id);
        return ResponseResult.okResult(byId);
    }
}
